
function login(){
	var userName = $('#userName').val();
	var password = $('#password').val();
	if(userName==null||userName==''){
		alert("不能为空");
	}
	$.ajax({
		url : base + "/BM/checkLogin.action",
		type : "post",
		data : {
			'userName':userName,
			'password':password
		},
		cache : false,
		success : function(data) {
			if (!data.success) {
				$.messager.alert("提示信息", data.message, "info");
			} else {
				if(data.userType=="999"){
					window.open(base + "/BM/manage.action");
				}else{
					window.open(base + "/BM/personal.action");
				}

			}
			$.messager.progress('close');
		},
		async : false
	});

}